doctype html
html
  head
    meta(charset='utf-8')
    title= title
    link(rel='stylesheet', href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400,700|Alegreya:700|Merriweather')
    link(rel='stylesheet', href='/docs/css/index.css')
    link(rel='stylesheet', href='/docs/css/github.css')
  body
    nav(class='sidebar')
      ul
        li
          a(href='/', class=(/index/.test(url) ? 'selected' : '')) Home
        li
          a(href=pages[0].url) Documentation
          ul
            each page in pages.slice(1)
              li
                a(href=page.url, class=page.title == title ? 'selected' : '')
                  = page.title.replace(/(with|in) PDFKit/, '')
                  
                - if (page.title == title && headers.length)
                  ul
                    each header in headers
                      li
                        a(href='#' + header.hash)= header.title
        
        li
          a(href='/docs/guide.pdf') PDF Guide
        li
          a(href='/demo/out.pdf') Example PDF
        li
          a(href='/demo/browser.html') Interactive Browser Demo
        li
          a(href='http://github.com/devongovett/pdfkit') Source Code
          
    .main
      != content
      nav
        - if (index > 0)
          a(href=pages[index - 1].url, class='previous') Previous
        
        - if (index < pages.length - 1)
          a(href=pages[index + 1].url, class='next') Next
    
    script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js')
    script(src='/docs/js/scroll.js')
    script(src='/docs/js/highlight.pack.js')
    script.
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
      ga('create', 'UA-48340245-1', 'pdfkit.org');
      ga('send', 'pageview');